//package com.jsyl.qies.web.controller.business;
//
//import com.jsyl.qies.business.dto.EnteringDTO;
//import com.jsyl.qies.business.dto.ScheduleRecordListDTO;
//import com.jsyl.qies.business.service.IPerformanceService;
//import com.jsyl.qies.business.vo.ClassScheduleVO;
//import com.jsyl.qies.business.vo.StudentBasicsVO;
//import com.jsyl.qies.business.vo.StudentScheduleRecordVO;
//import com.jsyl.qies.common.core.controller.BaseController;
//import com.jsyl.qies.common.core.domain.AjaxResult;
//import com.jsyl.qies.common.core.page.TableDataInfo;
//import com.jsyl.qies.framework.util.ShiroUtils;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.ModelMap;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
///**
// * 成绩录入
// */
//@Controller
//@RequestMapping("/business/scheduleRecord")
//public class ScheduleRecordController extends BaseController {
//
//    private String prefix = "business/scheduleRecord";
//
//    @Autowired
//    private IPerformanceService performanceService;
//
//    @RequiresPermissions("business:scheduleRecord:view")
//    @GetMapping()
//    public String scheduleRecord() {
//        return prefix + "/scheduleRecord";
//    }
//
//    /**
//     * 训练成绩录入列表
//     */
//    @PostMapping("/list")
//    @RequiresPermissions("business:scheduleRecord:list")
//    @ResponseBody
//    public TableDataInfo list(ScheduleRecordListDTO scheduleRecordListDTO) {
//        Long userId = ShiroUtils.getUserId();
//        startPage();
//        List<ClassScheduleVO> list = performanceService.findList(4771L, scheduleRecordListDTO);
//        return getDataTable(list);
//    }
//
//    /**
//     * 查询需要录入的学生基本信息(查看同样调用此接口)
//     * @param
//     * @param mmap
//     * @return
//     */
//    @GetMapping("/studentBasics/{scheduleTime}/{projectType}")
//    @RequiresPermissions("business:scheduleRecord:entering")
//    public String studentBasics(@PathVariable String scheduleTime, @PathVariable Integer projectType, ModelMap mmap) {
//        Long userId = ShiroUtils.getUserId();
//        List<StudentBasicsVO> studentBasicsVOS = performanceService.studentBasics(userId, scheduleTime, projectType);
//        mmap.put("studentBasicsVO", studentBasicsVOS);
//        mmap.put("scheduleTime", scheduleTime);
//        return prefix + "/studentEntering";
//    }
//
//    /**
//     * 根据选择的studentId的展示下面的题目信息（查看同样调用此接口）
//     * @param scheduleRecordListDTO
//     * @return
//     */
//    @PostMapping("/entering")
//    @RequiresPermissions("business:scheduleRecord:entering")
//    @ResponseBody
//    public AjaxResult entering(ScheduleRecordListDTO scheduleRecordListDTO) {
//        List<StudentScheduleRecordVO> studentScheduleRecordVOS = performanceService.entering(scheduleRecordListDTO);
//        return success(studentScheduleRecordVOS);
//    }
//
//    /**
//     * 保存老师评分
//     * @param enteringDTO
//     * @return
//     */
//    @PostMapping("/saveEntering")
//    @RequiresPermissions("business:scheduleRecord:entering")
//    @ResponseBody
//    public AjaxResult saveEntering(EnteringDTO enteringDTO) {
//        return toAjax(performanceService.saveEntering(enteringDTO));
//    }
//
//    /**
//     * 查询需要录入的学生基本信息
//     * @param
//     * @param mmap
//     * @return
//     */
//    @GetMapping("/studentBasicsShow/{scheduleTime}/{projectType}")
//    @RequiresPermissions("business:scheduleRecord:enteringShow")
//    public String studentBasicsShow(@PathVariable String scheduleTime, @PathVariable Integer projectType, ModelMap mmap) {
//        Long userId = ShiroUtils.getUserId();
//        List<StudentBasicsVO> studentBasicsVOS = performanceService.studentBasics(userId, scheduleTime, projectType);
//        mmap.put("studentBasicsVO", studentBasicsVOS);
//        mmap.put("scheduleTime", scheduleTime);
//        return prefix + "/studentEnteringShow";
//    }
//
//}
